//入口文件
// console.log("ok") 
// 导入路由的包
import VueRouter from 'vue-router'
// 安装路由
Vue.use(VueRouter)
import Vue from 'vue'
// 导入App根组件
import app from './App.vue'
// 导入mint-ui组件
import { Header, Swipe, SwipeItem } from 'mint-ui'
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
// 导入MUI样式
import './lib/mui/css/mui.min.css'
// 导入mui扩展图标样式
import './lib/mui/css/icons-extra.css'

// 导入router.js模块
import router from './router.js'
// 导入vue-resource
import  VueResource from 'vue-resource'
// 安装vue-resource
// Vue.use(VueResource)
// Vue.component(Header.name,Header)
import '../assets/common/common.css'
// import { Lazyload } from 'mint-ui';

// Vue.use(Lazyload);
import headerTop from './components/Header'
import footerBottom from './components/Footer'
Vue.component('my-header',headerTop)
Vue.component('my-footer',footerBottom)

var vm = new Vue ({
  el:'#app',
  render:c =>c(app),
  // 挂载路由
  router  
})